#!/bin/bash

FILES=`ls ./*.txt`

for file in $FILES
do
    sed '1,300d' $file > $file.tmp
    mv $file.tmp $file
done
